#ifndef COLLECTD_5_12_0_COMMTRAFF_SOCKET_CLIENT_H
#define COLLECTD_5_12_0_COMMTRAFF_SOCKET_CLIENT_H

#include <stdint.h>

typedef struct {
    void (*OnRecv)(char *buffer, int length);
} ClientRecvCb;

int32_t SendDataToServer(uint8_t *buffer, int32_t length);
int32_t GetClientPort(void);
int32_t ClientInit(ClientRecvCb *cb);
int32_t ClientDeinit();

#endif //COLLECTD_5_12_0_COMMTRAFF_SOCKET_CLIENT_H